package Xuan;

public class Alipay implements Pay {
    double m = 1000;
    public void pay(double money){
        if(m<money){
            System.out.println("您的余额不足");
        }
        else{
            System.out.println("您消费了："+money);
            m = m-money;
            System.out.println("您的余额为："+m);
        }
    }
}
